package com.cn.wanxi.service;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;

public class CompanyService {
    public CompanyModel getCompanyModel() {
        CompanyModel companyModel = new CompanyModel();
        CompanyDao companyDao = new CompanyDao();
        companyModel.setLogo(companyDao.getLogo());
        companyModel.setPhone(companyDao.getPhone());
        companyModel.setNet(companyDao.getNet());
        companyModel.setAddress(companyDao.getAddress());
        companyModel.setVersion(companyDao.getVersion());
        companyModel.setEmail(companyDao.getEmail());
        companyModel.setLinePhone(companyDao.getLinePhone());
        return companyModel;
    }
}
